// 编写好规则
export const rules = {
	name: [
		{
			required: true,
			message: '用户名不能为空',
			trigger: 'blur'
		},
		{
			pattern: /^[a-z0-9]{5,10}$/,
			message: '用户名在5-10个字符之间',
			trigger: 'blur'
		}
	],
	password: [
		{
			required: true,
			message: '密码不能为空',
			trigger: 'blur'
		},
		{
			pattern: /^[a-z0-9]{3,}$/,
			message: '密码不能少于3位有效字符',
			trigger: 'blur'
		}
	]
}